package cn.edu.scau.cmi.yangminghao.client;

public class President {
	private String name;
	private static int number=0;
	private President(String name) {
		this.name=name;
		number++;
	}
	public String getName() {
		return name;
	}
	public int getNumber() {
		return number;
	}
	public static President getInstance(String name) {
		if(number<10) {
			President instance = new President(name);
			return instance;
		}
		return null;
		
	}
}
